package com.data.modules.online.auth.vo;

import java.io.Serializable;

import com.data.modules.online.cgform.entity.OnlCgformField;

public class AuthColumnVO implements Serializable {
    private static final long serialVersionUID = 5445993027926933917L;
    private String cgformId;
    private String code;
    private boolean formEditable;
    private boolean formShow;

    private String f76id;
    private Integer isShowForm;
    private Integer isShowList;
    private boolean listShow;
    private Integer status;
    private int switchFlag;
    private String tableName;
    private String tableNameTxt;
    private String title;
    private Integer type = 1;


    public boolean canEqual(Object other) {
        return other instanceof AuthColumnVO;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof AuthColumnVO)) {
            return false;
        }
        AuthColumnVO authColumnVO = (AuthColumnVO) o;
        if (!authColumnVO.canEqual(this)) {
            return false;
        }
        if (isListShow() != authColumnVO.isListShow()) {
            return false;
        }
        if (isFormShow() != authColumnVO.isFormShow()) {
            return false;
        }
        if (isFormEditable() != authColumnVO.isFormEditable()) {
            return false;
        }
        if (getSwitchFlag() != authColumnVO.getSwitchFlag()) {
            return false;
        }
        Integer type2 = getType();
        Integer type3 = authColumnVO.getType();
        if (type2 != null ? !type2.equals(type3) : type3 != null) {
            return false;
        }
        Integer status2 = getStatus();
        Integer status3 = authColumnVO.getStatus();
        if (status2 != null ? !status2.equals(status3) : status3 != null) {
            return false;
        }
        Integer isShowForm2 = getIsShowForm();
        Integer isShowForm3 = authColumnVO.getIsShowForm();
        if (isShowForm2 != null ? !isShowForm2.equals(isShowForm3) : isShowForm3 != null) {
            return false;
        }
        Integer isShowList2 = getIsShowList();
        Integer isShowList3 = authColumnVO.getIsShowList();
        if (isShowList2 != null ? !isShowList2.equals(isShowList3) : isShowList3 != null) {
            return false;
        }
        String id = getId();
        String id2 = authColumnVO.getId();
        if (id != null ? !id.equals(id2) : id2 != null) {
            return false;
        }
        String cgformId2 = getCgformId();
        String cgformId3 = authColumnVO.getCgformId();
        if (cgformId2 != null ? !cgformId2.equals(cgformId3) : cgformId3 != null) {
            return false;
        }
        String code2 = getCode();
        String code3 = authColumnVO.getCode();
        if (code2 != null ? !code2.equals(code3) : code3 != null) {
            return false;
        }
        String title2 = getTitle();
        String title3 = authColumnVO.getTitle();
        if (title2 != null ? !title2.equals(title3) : title3 != null) {
            return false;
        }
        String tableName2 = getTableName();
        String tableName3 = authColumnVO.getTableName();
        if (tableName2 != null ? !tableName2.equals(tableName3) : tableName3 != null) {
            return false;
        }
        String tableNameTxt2 = getTableNameTxt();
        String tableNameTxt3 = authColumnVO.getTableNameTxt();
        if (tableNameTxt2 == null) {
            if (tableNameTxt3 == null) {
                return true;
            }
        } else if (tableNameTxt2.equals(tableNameTxt3)) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        int i = 79;
        int i2 = 43;
        int i3 = ((isFormShow() ? 79 : 97) + (((isListShow() ? 79 : 97) + 59) * 59)) * 59;
        if (!isFormEditable()) {
            i = 97;
        }
        int switchFlag2 = ((i3 + i) * 59) + getSwitchFlag();
        Integer type2 = getType();
        int i4 = switchFlag2 * 59;
        int hashCode = type2 == null ? 43 : type2.hashCode();
        Integer status2 = getStatus();
        int i5 = (hashCode + i4) * 59;
        int hashCode2 = status2 == null ? 43 : status2.hashCode();
        Integer isShowForm2 = getIsShowForm();
        int i6 = (hashCode2 + i5) * 59;
        int hashCode3 = isShowForm2 == null ? 43 : isShowForm2.hashCode();
        Integer isShowList2 = getIsShowList();
        int i7 = (hashCode3 + i6) * 59;
        int hashCode4 = isShowList2 == null ? 43 : isShowList2.hashCode();
        String id = getId();
        int i8 = (hashCode4 + i7) * 59;
        int hashCode5 = id == null ? 43 : id.hashCode();
        String cgformId2 = getCgformId();
        int i9 = (hashCode5 + i8) * 59;
        int hashCode6 = cgformId2 == null ? 43 : cgformId2.hashCode();
        String code2 = getCode();
        int i10 = (hashCode6 + i9) * 59;
        int hashCode7 = code2 == null ? 43 : code2.hashCode();
        String title2 = getTitle();
        int i11 = (hashCode7 + i10) * 59;
        int hashCode8 = title2 == null ? 43 : title2.hashCode();
        String tableName2 = getTableName();
        int i12 = (hashCode8 + i11) * 59;
        int hashCode9 = tableName2 == null ? 43 : tableName2.hashCode();
        String tableNameTxt2 = getTableNameTxt();
        int i13 = (hashCode9 + i12) * 59;
        if (tableNameTxt2 != null) {
            i2 = tableNameTxt2.hashCode();
        }
        return i13 + i2;
    }

    public void setCgformId(String cgformId2) {
        this.cgformId = cgformId2;
    }

    public void setCode(String code2) {
        this.code = code2;
    }

    public void setFormEditable(boolean formEditable2) {
        this.formEditable = formEditable2;
    }

    public void setFormShow(boolean formShow2) {
        this.formShow = formShow2;
    }

    public void setId(String id) {
        this.f76id = id;
    }

    public void setIsShowForm(Integer isShowForm2) {
        this.isShowForm = isShowForm2;
    }

    public void setIsShowList(Integer isShowList2) {
        this.isShowList = isShowList2;
    }

    public void setListShow(boolean listShow2) {
        this.listShow = listShow2;
    }

    public void setStatus(Integer status2) {
        this.status = status2;
    }

    public void setSwitchFlag(int switchFlag2) {
        this.switchFlag = switchFlag2;
    }

    public void setTableName(String tableName2) {
        this.tableName = tableName2;
    }

    public void setTableNameTxt(String tableNameTxt2) {
        this.tableNameTxt = tableNameTxt2;
    }

    public void setTitle(String title2) {
        this.title = title2;
    }

    public void setType(Integer type2) {
        this.type = type2;
    }

    public String toString() {
        return "AuthColumnVO(id=" + getId() + ", cgformId=" + getCgformId() + ", type=" + getType() + ", code=" + getCode() + ", title=" + getTitle() + ", status=" + getStatus() + ", listShow=" + isListShow() + ", formShow=" + isFormShow() + ", formEditable=" + isFormEditable() + ", isShowForm=" + getIsShowForm() + ", isShowList=" + getIsShowList() + ", tableName=" + getTableName() + ", tableNameTxt=" + getTableNameTxt() + ", switchFlag=" + getSwitchFlag() + ")";
    }

    public String getId() {
        return this.f76id;
    }

    public String getCgformId() {
        return this.cgformId;
    }

    public Integer getType() {
        return this.type;
    }

    public String getCode() {
        return this.code;
    }

    public String getTitle() {
        return this.title;
    }

    public Integer getStatus() {
        return this.status;
    }

    public boolean isListShow() {
        return this.listShow;
    }

    public boolean isFormShow() {
        return this.formShow;
    }

    public boolean isFormEditable() {
        return this.formEditable;
    }

    public Integer getIsShowForm() {
        return this.isShowForm;
    }

    public Integer getIsShowList() {
        return this.isShowList;
    }

    public String getTableName() {
        return this.tableName;
    }

    public String getTableNameTxt() {
        return this.tableNameTxt;
    }

    public int getSwitchFlag() {
        return this.switchFlag;
    }

    public AuthColumnVO() {
    }

    public AuthColumnVO(OnlCgformField field) {
        this.f76id = field.getId();
        this.cgformId = field.getCgformHeadId();
        this.code = field.getDbFieldName();
        this.title = field.getDbFieldTxt();
        this.type = 1;
        this.isShowForm = field.getIsShowForm();
        this.isShowList = field.getIsShowList();
    }
}
